const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    token: state => state.user.token, //建立token快捷访问
    name: state => state.user.userInfo.username, //建立用户名的快捷访问
    userId: state => state.user.userInfo.userId, //建立用户ID的快捷访问
    avatar: state => state.user.userInfo.staffPhoto,
    companyId: state => state.user.userInfo.companyId, //建立公司ID快捷访问
    routes: state => state.permission.routes //建立动态路由快捷访问

}
export default getters